package Animal;

//当用一个类实现多个接口的时候，每个接口的抽象方法都要实现
//否则只能是抽象类
public class Frog extends Animal implements ISwimming,IRunning {
    public Frog(String name){
        super(name);
    }

    @Override
    public void run() {
        System.out.println(this.name+"正在往前跳");
    }

    @Override
    public void swim() {
        System.out.println(this.name+"正在蹬腿游泳");
    }
}
